import {Controller, Get} from '@nestjs/common';
import {ApiOperation} from "@nestjs/swagger";
import {IssueService} from "./issue.service";

@Controller('issue')
export class IssueController {

    constructor(private readonly issueService: IssueService) {}

    @Get('/listByTag')
    @ApiOperation({ summary: '获取题库数据并按 tag 分组' })
    async getQuestionBankByTag() {
        return await this.issueService.getQuestionBankByTag();
    }

}
